package P3.T04;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;

public class T04 {
    public static void main(String[] args) {
        Cats cats=new Cats(new Cat[]{new Cat("miao1"),
                new Cat("miao2"),
                new Cat("miao8"),
                new Cat("miao9"),
                new Cat("miao3"),
                new Cat("miao5"),
        });
//        Iterator<Cat> it=cats.iterator();
//        while(it.hasNext()) System.out.println(it.next());
//        it=cats.iterator();
//        while(it.hasNext()) System.out.println(it.next());
        for(Cat c:cats) System.out.println(c);
        for(Cat c:cats) System.out.println(c);
    }
}
class A{
    private int i=15;
    public void tt(){
        System.out.println(i);
    }
    public void cc(){
        B b=new B();
        b.t();
        b.t2();
        System.out.println(b.ccc);
    }
    public class B{
        private int ccc=1111;
        public void t(){
            System.out.println(A.this.i);

        }
        private void t2(){

        }
    }
}